@charset "UTF-8";
@import "rem-calc";


$mediaArray: "only screen and (max-width: 379px)",
"only screen and (min-width: 380px) and (max-width: 399px)",
"only screen and (min-width: 400px) and (max-width: 439px)",
"only screen and (min-width: 440px) and (max-width: 479px)",
"only screen and (min-width: 480px) and (max-width: 639px)",
"only screen and (min-width: 640px) and (max-width: 679px)",
"only screen and (min-width: 750px)";

$rem-base: 36px;
$ratioFor320: 640/320;
$ratioFor380: 640/380;
$ratioFor400: 640/400;
$ratioFor440: 640/440;
$ratioFor480: 640/480;
$ratioFor640: 640/680;
$ratioFor750: 640/750;

$htmSizeArray: floor($rem-base/$ratioFor320),
floor($rem-base/$ratioFor380),
floor($rem-base/$ratioFor400),
floor($rem-base/$ratioFor440),
floor($rem-base/$ratioFor480),
floor($rem-base/$ratioFor640),
floor($rem-base/$ratioFor750);

html,body{
  margin: 0px;
  padding: 0px;
  clear: both;
  overflow: auto;
  background-repeat: no-repeat;
  background-image: url("../images/app/two/bg.jpg");
  //position: absolute;
  min-height: 100%;
  width: 100%;
  background-size: 100%;
  height: auto;
}
html{
  background-position: center bottom;
  height: auto;
  background-image: url("../images/app/two/htmlbg.jpg");
  background-repeat: repeat-y;
}
p{
  margin: 0;
  padding: 0px;
}
.oneContainer{
  margin-top: rem-calc(280px);
  padding: 0px 10px;
  box-sizing: border-box;
  padding-bottom: 20px;
  .shops{
    background-color: rgba(120,120,120,0.5);
    width: 98%;
    margin: 0 auto;
    overflow: hidden;
    clear: both;
    padding: 20px;
    box-sizing: border-box;
    .shopBox{
      margin-right: -10px;
      margin-bottom: -10px;
      .shopItem{
        float: left;
        background-color: #fff;
        padding: rem-calc(30px);
        overflow: hidden;
        width: rem-calc(130px); margin-right: 10px;
        margin-bottom: 10px;
        height: rem-calc(170px);
        position: relative;
        img{
          width: 100%;
          &.over{
            position: absolute;
            top:20%;
            left: 0%;
          }
        }
      }
    }
    .info{
      text-align: center;
    }
  }
  .couponBox{
    background-color: #fff;
    width: 90%;
    margin: 0 auto;
    padding: 30px 0;
    .couponItem{
      width: rem-calc(502px);
      height: rem-calc(222px);
      clear: both;
      overflow: hidden;
      margin: 0 auto;
      display: block;
      background-image: url("../images/app/two/shopcoupon.png");
      background-size: cover;
      background-repeat: no-repeat;
      margin-bottom: 20px;
      position: relative;
      .over{
        position: absolute;
        left: 25%;
        height: 100%;
      }
      .logo{
        width: 35%;
        float: left;
        text-align: center;
        -webkit-align-content: center;
        -ms-flex-align: center;
        align-items: center;
        display: -webkit-flex;
        display: flex;
        height: rem-calc(222px);
        img{
          max-height: rem-calc(150px);
          max-width: rem-calc(150px);
          margin: 0 auto;
        }
      }
      .text{
        float: left;
        width: 60%;
        color: #fff;
        text-align: center;
        .discount{
          font-size: rem-calc(60px);
          line-height: 2;
          font-weight: bold;
          text-shadow: 0px 3px 3px rgba(0,0,0,0.4);
          margin-top: 10px;
        }
        .time{
          font-size: rem-calc(26px);
          line-height: 2;
        }
      }
    }
    .coupon{
      width: rem-calc(502px);
      height: rem-calc(222px);
      background-image: url("../images/app/two/coupon.png");
      background-size: cover;
      margin: 20px auto;
      clear: both;
      overflow: hidden;
      .discount{
        float: left;
        -webkit-align-content: center;
        -ms-flex-align: center;
        align-items: center;
        display: -webkit-flex;
        display: flex;
        height: rem-calc(222px);
        width: 50%;
        .text{
          font-size: rem-calc(50px);
          font-weight: bold;
          text-align: center;
          line-height: 1.5;
          color: #fff;
          margin: 0 auto;
          text-shadow: 0px 3px 3px rgba(0,0,0,0.3);
        }
      }
      .number_logo{
        float: right;
        width: 50%;
        overflow: hidden;
        padding-top: 10px;
        .number{
          font-size: rem-calc(40px);
          color: #fff;
          text-align: center;
        }
        .logoImg{
          clear: both;
          overflow: hidden;
          height: rem-calc(80px);
          text-align: center;
          img{
            max-height: rem-calc(80px);
            max-width: 80%;
          }
        }
        .time{
          font-size: rem-calc(14px);
          margin-top: 5px;
          color: #fff;
        }
      }

    }
    .gotText{
      text-align: center;
      font-size: rem-calc(40px);
      line-height: 2;
      color: #666;
    }
    .logoImg{
      height: rem-calc(230px);
      -webkit-align-content: center;
      -ms-flex-align: center;
      align-items: center;
      display: -webkit-flex;
      display: flex;
      img{
        max-height: rem-calc(200px);
        max-width: rem-calc(600px);
        margin: 0 auto;
        //box-shadow: 0px 5px 5px rgba(0,0,0,0.3);
      }
    }
    .howUser{
      width: 94%;
      margin: 20px auto;
      display: block;
    }
    .desInfo{
      font-size: rem-calc(16px);
      color: #666;
      margin: 20px auto;
      width: 80%;
      line-height: 2;

    }
    .mkesure{
      display: block;
      clear: both;
      overflow: hidden;
      margin: 30px auto;
      width: rem-calc(461px);
      height: rem-calc(168px);
      background-image: url("../images/app/one/btn.png");
      background-size: cover;
      line-height: 100;
      background-repeat: no-repeat;
    }
  }
  .ft{
    font-size: rem-calc(36px);
    color: #666;
    text-align: center;
  }
  .input{
    height: rem-calc(80px);
    line-height: rem-calc(80px);
    border: 1px solid #ddd;
    background-color: rgba(255,255,255,0.7);
    width: rem-calc(500px);
    margin: 0px auto;
    box-sizing: border-box;
    padding: 0px;
  }
  input[type="tel"]{
    border: 0px;
    height: rem-calc(70px);
    line-height: rem-calc(70px);
    border-radius: 0px;
    background:none;
    width: 100%;
    font-size: rem-calc(38px);
    text-align: center;
    vertical-align: middle;
    margin-left: -10px;
    outline: none;
  }
  .smbtn{
    width: rem-calc(230px);
    height: rem-calc(90px);
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    margin: 10px auto;
    background-image: url("../images/app/one/smbtn.png");
    line-height: 100;
    overflow: hidden;
  }
  .twodes{
    width: 90%;
    margin: 20px auto;
    display: block;
  }
}


// set responsive
@for $mediaIndex from 1 to length($mediaArray) + 1 {
  $media: nth($mediaArray, $mediaIndex);
  $htmlFz: nth($htmSizeArray, $mediaIndex);
  @media #{$media}
  {
    html {
      font-size: $htmlFz;
    }
  }
}